{validate form="shorten" id="v_longurl_valid" append="error" message="Long URL must be valid."}
{validate form="shorten" id="v_longurl_host" append="error" message="You cannot create a redirection to this service."}
{validate form="shorten" id="v_keyword_valid" append="error" message="The custom keyword can only contain letters, numbers, underscores and dashes."}
{validate form="shorten" id="v_keyword_unique" append="error" message="The generated keyword or the one you specified already exists (which is rare when generating one but it happens)."}
{validate form="shorten" id="v_email_valid" append="error" message="Email is not valid."}
{validate form="shorten" id="v_cloak_regexp" append="error" message="Cloak option must be valid."}
{if $shorten_button}
	<div class="failed">
		{foreach $error as $message}
			{$message}<br />
		{/foreach}
	</div>
{/if}